﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using SingleUserMall.Orders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Items
{
    /// <summary>
    /// 商品评论
    /// </summary>
    public class ItemComment : FullAuditedEntity<long>
    {
        /// <summary>
        /// 商品id
        /// </summary>
        public long ItemId { get; set; }
        [ForeignKey("ItemId")]
        public virtual Item Item { get; set; }
        /// <summary>
        /// 商品规格id
        /// </summary>
        public long ItemSpecId { get; set; }
        [ForeignKey("ItemSpecId")]
        public virtual ItemSpec ItemSpec { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        /// <summary>
        /// 订单id
        /// </summary>
        public long OrderId { get; set; }
        [ForeignKey("OrderId")]
        public virtual Order Order { get; set; }
        /// <summary>
        /// 星级
        /// </summary>
        public int Star { get; set; }
        /// <summary>
        /// 评论标签（,分割）
        /// </summary>
        public string Tags { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        public string Comment { get; set; }
        /// <summary>
        /// 评论图片（,分割）
        /// </summary>
        public string CommentImages { get; set; }
        /// <summary>
        /// 回复内容
        /// </summary>
        public string ReplyComment { get; set; }
        /// <summary>
        /// 是否后台回复
        /// </summary>
        public bool HasReply { get; set; }

    }
}
